package com.wjs.spring.service;


import com.wjs.spring.untils.ProxyUntil;


public class Client {
    public static void main(String[] args) {
        //创建目标对象 
        OrderService target = new OrderServiceImpl();
        //创建代理对象
        OrderService orderService = (OrderService) ProxyUntil.newProxyInstance(target);
        orderService.update();
        orderService.select();
        orderService.insert();
        orderService.delete();
    }
}
